package com.mj.common.util;

import org.apache.commons.codec.digest.DigestUtils;
import org.apache.commons.lang.StringUtils;

 

public class PasswordUtil {
	
	private  final static String JAMMING_CHARACTER = "7873dfb27ffa44b8a9e860bca98a1b56";
	
	public static String encrypt(String pwd){
		if(StringUtils.isNotBlank(pwd)){
			pwd = pwd+JAMMING_CHARACTER;
		   return	DigestUtils.md5Hex(pwd);
		}
		return null;
		
		
	}

}
